Don't draw to unviewable windows
authorAlexander Larsson <alexl@redhat.com>
Fri, 10 Jul 2009 22:28:18 +0000 (00:28 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 10 Jul 2009 22:33:52 +0000 (00:33 +0200)
commitd0366e5160af88e9fa6842c5492db1bd58be5379
tree1432e02bb37790e48851940ad3a45f0fa6b5b66f
parentc25ef64c706204847958fc5efcf1de629472be4e
Don't draw to unviewable windows

The scrolling and region moving code needs to avoid drawing when the
window is mapped, which it did. However, it also needs to avoid
drawing when any of its parents are not mapped, which it didn't so
switch to using gdk_window_is_viewable().

This fixes the index rendering in evolution (#588169)
gdk/gdkwindow.c